//父子类不在同一个包中时需要使用 import 导入
import inheritance.Student;
public class MiddleSchoolStudent extends Student {

    public static void main(String[] args) {
        MiddleSchoolStudent m = new MiddleSchoolStudent();

        m.name = "蒋嘉豪";
        m.number = 100241;
        // m.age = 15 ; // package-private :  The field Student.age is not visible ( 因为不同包 )
        // m.head = "三丰的头" ; // private : The field Student.head is not visible ( 因为私有 )

        m.show();
    }
}
